﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logika
{
    class Soba  : SobaXML
    {
        int level;
	    int score;
	    int time, timeLeft; //skupni čas za level (odvisno od težavnosti)
	    int snakeNum, snakeNumLeft;
	    int ballNum;
	    int appleNum, appleNumLeft; //skupno število jabolk (odvisno od težavnosti)

        public int Level
        {
            get { return level; }
            set { level = value; }
        }

        public int Score
        {
            get { return score; }
            set { score = value; }
        }

	    public int Time
        {
            get { return time; }
            set { time = value; }
        }

	    public int TimeLeft
        {
            get { return timeLeft; }
            set { timeLeft = value; }
        }

	    public int TakeNum
        {
            get { return snakeNum; }
            set { snakeNum = value; }
        }

	    public int SnakeNumLeft
        {
            get { return snakeNumLeft; }
            set { snakeNumLeft = value; }
        }

    	public int BallNum
        {
            get { return ballNum; }
            set { ballNum = value; }
        }

	    public int AppleNum
        {
            get { return appleNum; }
            set { appleNum = value; }
        }

	    public int AppleNumLeft
        {
            get { return appleNumLeft; }
            set { appleNumLeft = value; }
        }

        public Soba(int lvl, int scr, int timer, int snake, int ball, int apple)
        {
	        level = lvl;
	        score = scr;
	        time = timer;
	        timeLeft = timer;
	        snakeNum = snake;
	        snakeNumLeft = snake;
	        ballNum = ball;
	        appleNum = apple;
	        appleNumLeft = apple;
	    }

	    public void SestevekTock (int points)
	    {
	        score += points;	
	    }
    }
}
